package com.web.base.log.message;

import com.blue.core.dict.Read;
import com.web.core.join.DoubleUserJoin;

import java.io.Serializable;
import java.util.Date;

/**
 * 消息响应内容
 * 
 * @author 代码由 blue-code 框架生成
 * @since 1.0 2018年06月20日
 */
public class MessageResponse implements Serializable, DoubleUserJoin
{
	private static final long serialVersionUID = 1L;
	
	private Integer id; // 编号
	private Integer senderId; // 发送者编号：0表示系统
	private Integer receiverId; // 接收者编号
	private String title; // 消息标题
	private String content; // 消息内容
	private Date createTime; // 创建时间
	private Date readTime; // 阅读时间
	private Read read; // 阅读状态：0未读，1已读

	private String senderName; // 发送者名称
	private String senderMobile; // 发送者手机
	private String senderNickname; // 发送者昵称
	private String receiverName; // 接收者名称
	private String receiverMobile; // 接收者手机
	private String receiverNickname; // 接收者昵称
	
	public MessageResponse()
	{
	}
	
	public Integer getId()
	{
		return this.id;
	}
	
	public void setId(Integer id)
	{
		this.id = id;
	}
	
	public Integer getSenderId()
	{
		return this.senderId;
	}
	
	public void setSenderId(Integer senderId)
	{
		this.senderId = senderId;
	}
	
	public Integer getReceiverId()
	{
		return this.receiverId;
	}
	
	public void setReceiverId(Integer receiverId)
	{
		this.receiverId = receiverId;
	}
	
	public String getTitle()
	{
		return this.title;
	}
	
	public void setTitle(String title)
	{
		this.title = title;
	}
	
	public String getContent()
	{
		return this.content;
	}
	
	public void setContent(String content)
	{
		this.content = content;
	}
	
	public Date getCreateTime()
	{
		return this.createTime;
	}
	
	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}
	
	public Date getReadTime()
	{
		return this.readTime;
	}
	
	public void setReadTime(Date readTime)
	{
		this.readTime = readTime;
	}

	public Read getRead()
	{
		return read;
	}

	public void setRead(Read read)
	{
		this.read = read;
	}

	public String getSenderName()
	{
		return senderName;
	}

	public void setSenderName(String senderName)
	{
		this.senderName = senderName;
	}

	public String getSenderMobile()
	{
		return senderMobile;
	}

	public void setSenderMobile(String senderMobile)
	{
		this.senderMobile = senderMobile;
	}

	public String getSenderNickname()
	{
		return senderNickname;
	}

	public void setSenderNickname(String senderNickname)
	{
		this.senderNickname = senderNickname;
	}

	public String getReceiverName()
	{
		return receiverName;
	}

	public void setReceiverName(String receiverName)
	{
		this.receiverName = receiverName;
	}

	public String getReceiverMobile()
	{
		return receiverMobile;
	}

	public void setReceiverMobile(String receiverMobile)
	{
		this.receiverMobile = receiverMobile;
	}

	public String getReceiverNickname()
	{
		return receiverNickname;
	}

	public void setReceiverNickname(String receiverNickname)
	{
		this.receiverNickname = receiverNickname;
	}

	@Override
	public Integer getUserId()
	{
		return senderId;
	}

	@Override
	public void setUserName(String userName)
	{
		this.senderName = userName;
	}

	@Override
	public void setUserMobile(String userMobile)
	{
		this.senderMobile = userMobile;
	}

	@Override
	public void setUserNickname(String userNickname)
	{
		this.senderNickname = userNickname;
	}

	@Override
	public Integer getOtherUserId()
	{
		return receiverId;
	}

	@Override
	public void setOtherUserName(String userName)
	{
		this.receiverName = userName;
	}

	@Override
	public void setOtherUserMobile(String userMobile)
	{
		this.receiverMobile = userMobile;
	}

	@Override
	public void setOtherUserNickname(String userNickname)
	{
		this.receiverNickname = userNickname;
	}
}
